<template>
  <search-table
      title="测试"
      :headers="headers"
      :searchData="pageDataRange"
  >
    :columnFormatter="columnFormatter"</search-table>
</template>

<script>
import SearchTable from "@/components/search-table"
import {pageDataRange} from "@/api/test"
export default {
  name: 'dataRange',
  components:{SearchTable},
  data() {
    return {
      headers:[
        {key:'id',label:'ID',forbiddenEdit:true},  //默认type : input ，默认允许在添加界面添加相关字段 forbiddenEdit禁止编辑
        {key:'name',label:'名称'},
        {key:'description',label:'描述'},
        {key:'createTime',label:'创建日期',type:"datetime",forbiddenEdit:true},
        {key:'updateTime',label:'更新日期',type:"date",forbiddenEdit:true},
        {key:'isDeleted',label:'是否删除',forbiddenEdit:true,type:"radio",options:[{key:true,label:'删除'},{key:false,label:'未删除'}]},
      ]
    }
  },
  mounted() {

  },
  methods: {
    pageDataRange(params){
      return pageDataRange(params)
    }
  }
}
</script>

<style scoped lang="scss">

</style>
